import {createStore, createLogger} from 'vuex'
import mutations from "@/store/mutations";
import actions from "@/store/actions";
import getters from "@/store/getters";

const debug = process.env.NODE_ENV !== 'production'

export default createStore({
    state: {
        exams: null,
        currentExam: null,
        questions: null,
        answers: null
    },
    getters,
    mutations,
    actions,
    modules: {},
    strict: debug,
    plugins: debug ? [createLogger()] : []
})
